package com.rightsidetech.activity.dto.request.gift;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ActGiftNumberReq implements Serializable {

    @ApiModelProperty(value = "换购商品id",required = true)
    @NotNull(message = "换购商品id不可为空")
    @Min(value = 1,message = "换购商品id不可小于1")
    private Long giftCommodityId;

    @ApiModelProperty(value = "数量",required = true)
    @NotNull(message = "数量不可为空")
    @Min(value = 1,message = "数量不可小于1")
    private Integer num;
}
